<div class="report-container">
    <%unless session[:user].nil? -%>
    	<div class="report-header">
        	<div class="report-title">
            	Report Abuse
            </div>
            <div class="report-close" >
	               <%=image_tag "close.jpg", :width=>"21", :height=>"21", :border=>"0", :align=>"right", :style=>"cursor:pointer;", :onclick=>"Dialog.okCallback();" -%>
           	</div>
      </div>
   <%  form_for :blame_ad, :url => {:controller=>"advertisments", :action => "blame_ad" , :id => params[:id] } do |blame_form| %>

      <div class="post-to-report">
      Report post "<%= @advertisment.title %>"
      </div>
      <div class="report-fields">
        <%#=  blame_form.text_field :yourname, :value => "Your name*" , :size=>25, :maxlength=>30 %>
        <%#=  blame_form.text_field :youremail, :value => "E-mail ID*" , :size=>25, :maxlength=>30 %>
      <input type="text" name="yourname" value="Your name*" maxlength="30" size="25"/>
      <input type="text" name="youremail" value="E-mail ID*" maxlength="30" size="25"/>
      </div>
		<div class="report-why">
              	Why do you want to report this ad?<br/>
		</div>
      <div class="report-reasons">
	 	    <%#=blame_form.radio_button :reason, "1" %>
            <%#*Mis-categorized<br/>%>
            <%#=blame_form.radio_button :reason, "2" %>
            <%#*Expired<br/>%>
            <%#=blame_form.radio_button :reason, "3" %>
            <%#*Inaccurate, Fraudulent content<br/>%>
            <%#=blame_form.radio_button :reason, "4" %>
            <%#*Illegal, Inappropriate or Objectionable content<br/>%>
            
            
            <input type="radio" name="reason" value= "1" />Mis-categorized<br/>
			<input type="radio" name="reason" value= "2" checked="checked"/>Expired<br/>
	 	    <input type="radio" name="reason" value="3"/>Inaccurate, Fraudulent content<br/>
			<input type="radio" name="reason" value="4" checked="checked"/>Illegal, Inappropriate or Objectionable content<br/>
  		</div>
        <div class="report-message">
		<%#=  blame_form.text_area :message, :rows=>2, :cols=>40, :value => "Message(optional)"%>
        <textarea name ="message" rows="2" cols="40">Message(Optional)</textarea>
          </div>
        <div class="report-buttons">


              <%= image_submit_tag("report.jpg", :width=>"70", :height=>"24", :border=>"0",  :alt=>"Report Abuse") -%>
              <%=image_tag "cancel.jpg" , :width=>"70", :height=>"24", :border=>"0",  :alt=>"Cancel",:style=>"cursor:pointer;",:onclick=>"Dialog.okCallback();" -%>
			
        	
        </div>
        <% end -%>
        <%else%>
                Please Login to Flag this Advertisment
                <%=image_tag "cancel.jpg" , :width=>"70px", :height=>"24px", :border=>"0px",  :alt=>"Cancel",:style=>"cursor:pointer;",:onclick=>"Dialog.okCallback();" -%>
     <% end -%>
    </div>